
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_executable(client main.cpp)
target_link_libraries(client duilib climain winmm)
#set_target_properties(client PROPERTIES LINK_FLAGS "-mwindows")
set_target_properties(client PROPERTIES OUTPUT_NAME "client")
add_custom_command(TARGET client POST_BUILD
  COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PROJECT_BINARY_DIR}/client/client.exe ${PROJECT_SOURCE_DIR}/bin/client.exe
  COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PROJECT_BINARY_DIR}/client/client.exe ${PROJECT_BINARY_DIR}/client/client.exe
)